package com.example.usage.aop.log;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author jiangzhe
 * @create 2022/4/1 11:15
 */
@Service
@Slf4j
public class WorkService {

    @OptLogAnno(optModule = "transService", value = "add")
    public String transAdd(String userId, int amount){
//        int a = 10 / amount;
        log.info("user {} add money {}", userId, amount);
        return userId;
    }
}
